package com.zbkj.crmeb.store.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.common.PageParamRequest;
import com.github.pagehelper.PageHelper;
import com.zbkj.crmeb.store.dao.OrderInfoDeliveryBatchUploadDao;
import com.zbkj.crmeb.store.model.OrderInfoDeliveryBatchUpload;
import com.zbkj.crmeb.store.service.OrderInfoDeliveryBatchUploadService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderInfoDeliveryBatchUploadServiceImpl extends ServiceImpl<OrderInfoDeliveryBatchUploadDao, OrderInfoDeliveryBatchUpload> implements OrderInfoDeliveryBatchUploadService {

    /**
     * 功能描述: 获取批量发货列表
     * @Param: [request]
     * @Return: java.util.List<com.zbkj.crmeb.store.model.OrderInfoDeliveryBatchUpload>
     * @Author: wangzh
     * @Date: 2023/3/30 16:53
     */
    @Override
    public List<OrderInfoDeliveryBatchUpload> getDeliveryBatchList(PageParamRequest request) {
        PageHelper.startPage(request.getPage(), request.getLimit());
        return this.list(Wrappers.<OrderInfoDeliveryBatchUpload>lambdaQuery().orderByDesc(OrderInfoDeliveryBatchUpload::getId));
    }
}
